import http from "@/utils/request"

export const getCategory = () => http.get('/category/getCategory')

export const addCategory = (categoryName, categoryImgurl) => http.post('/category/addCategory', {
    categoryName,
    categoryImgurl
})

//上传类目图片

// export const uploadCategoryImg = () => http.post('/students/uploadStuAvatar')

//删除类目

export let deleteCategory = (category_id) => http.get('/category/delCategory', {
    params: {
        category_id,
    }
})